package me.ymfs.springboot.guice.base;

public class BaseServiceImpl<T> implements BaseService<T> {

    protected final BaseMapper<T> mapper;

    public BaseServiceImpl(BaseMapper<T> mapper) {
        this.mapper = mapper;
    }

    @Override
    public T selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }
}
